package com.leyou.trade.config;

import com.leyou.auth.thread.UserContext;
import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * @author 虎哥
 */
//@Component
public class JwtInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
        template.header("Cookie", "LY_TOKEN=" + UserContext.getJwt());
    }
}
